Using WS-AppServer Package to Model Relational Data |
|
A WS-AppServer package contains data models in the form of Java classes, methods, and attributes, which are used in building a WS-AppServer application. It also contains information on the relationship that exists between different models.
Package contains the namespace information, which is unique. The same information is carried over to the models, Java classes, methods, and attributes that reside within the package. As a result, the contents of one package are easily distinguished from the contents of another package.
You can create a WS-AppServer package in several ways:
- Create an empty WS-AppServer package
- Create a WS-AppServer package directly on database, using Database Metadata
- Create a WS-AppServer package while generating Web service operations on database, using Database Metadata
After creating a WS-AppServer package, you can perform the following activities: - Load the package with database details, using Database Metadata
- Generate Java code for the models
- Generate Web service interface on the models
- Add Custom Methods to the model
- Create custom classes using Object Layout
- Create custom classes using Query builder
Note:
If you are generating Web service operations on database (using Database Metadata), the wizard provides options to create the WS-AppServer package, generate the corresponding Schemas, and generate the Java code for the selected tables along with the Web service operations. It is recommended that you use these options to save time and improve productivity. WS-AppServer provides you the flexibility to modify the contents of the WS-AppServer package at a later time, if required.